//
//  YuXi.m
//  DialectShare
//
//  Created by timmy zhong on 3/21/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "YuXi.h"

@implementation YuXi

@synthesize yuxiId = _yuxiId, name = _name, listen = _listen;

- (void)dealloc
{
    self.name = nil;

    [super dealloc];
}

+ (YuXi *)yuxiWithDic:(NSDictionary *)dic
{
    YuXi *yuxi = [[YuXi alloc] init];
    yuxi.yuxiId = [[dic objectForKey:@"id"] intValue];
    yuxi.name = [dic objectForKey:@"name"];
    yuxi.listen = [[dic objectForKey:@"listen_count"] intValue];
    return [yuxi autorelease];
}

@end
